package com.jsits.v2x.common.connection.ftp;

public class ServerInfo 
{
	/*
	 * 服务端ip
	 */
	private String ip;

	/*
	 * 服务端端口号
	 */
	private int port;
	
	/*
	 * 用户名
	 */
	private String userName;
	
	/*
	 * 密码
	 */
	private String password;
	
	/*
	 * 服务端文件路径
	 */
	private String remotePath;
	
	/*
	 * 客户端文件路径
	 */
	private String localPath;
	
	/*
	 * 连接超时时间，默认5秒
	 */
	private int connectTimeout = 5000;
	
	/*
	 * 读数据超时时间，默认5秒
	 */
	private int readTimeout = 5000;
	
	/*
	 * 客户端与服务端最后一次数据交互时间戳
	 */
	private long timeStamp;

	/*
	 * 服务端或客户端状态
	 */
	private boolean status;
	
	/*
	 * 定时检测服务端、客户端状态周期
	 */
	private int interval;
	
	/*
	 * 数据超时时间，若当前时间与记录时间戳时间间隔大于该时间，判定状态异常
	 */
	private int timeout;

	public String getIp() 
	{
		return ip;
	}

	public void setIp(String ip) 
	{
		this.ip = ip;
	}

	public int getPort() 
	{
		return port;
	}

	public void setPort(int port) 
	{
		this.port = port;
	}

	public String getUserName() 
	{
		return userName;
	}

	public void setUserName(String userName) 
	{
		this.userName = userName;
	}

	public String getPassword() 
	{
		return password;
	}

	public void setPassword(String password) 
	{
		this.password = password;
	}

	public String getRemotePath() 
	{
		return remotePath;
	}

	public void setRemotePath(String remotePath) 
	{
		this.remotePath = remotePath;
	}

	public String getLocalPath()
	{
		return localPath;
	}

	public void setLocalPath(String localPath) 
	{
		this.localPath = localPath;
	}
	
	public int getConnectTimeout() 
	{
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) 
	{
		this.connectTimeout = connectTimeout;
	}

	public int getReadTimeout() 
	{
		return readTimeout;
	}

	public void setReadTimeout(int readTimeout) 
	{
		this.readTimeout = readTimeout;
	}
	
	public long getTimeStamp() 
	{
		return timeStamp;
	}

	public void setTimeStamp(long timeStamp) 
	{
		this.timeStamp = timeStamp;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public int getInterval() 
	{
		return interval;
	}

	public void setInterval(int interval) 
	{
		this.interval = interval;
	}

	public int getTimeout() 
	{
		return timeout;
	}

	public void setTimeout(int timeout) 
	{
		this.timeout = timeout;
	}
}
